import Request from '@/api/request'
const request = new Request().http

// 获取义购之家商品详情
export function getProductDetail(data: any) {
	return request({
		url: `/product/detail/${data.id}`,
		method: "GET"
	})
}
// 获取购物车数量
export function getCartNumber(data: any) {
	return request({
		url: `/cart/count`,
		method: "GET",
		data
	})
}
// 加入购物车
export function postJoinCart(data: object) {
	return request({
		url: "/cart/save",
		method: "POST",
		data
	})
}